package com.easyOrder.core.duplicate;

import java.io.Serializable;
import java.util.concurrent.atomic.AtomicBoolean;

public class DuplicateSubmissionToken implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -6753612682527480278L;

    private String token;

    private AtomicBoolean submited = new AtomicBoolean(false);

    /**
     * @return the token
     */
    public String getToken() {
        return token;
    }

    /**
     * @return the submited
     */
    public AtomicBoolean getSubmited() {
        return submited;
    }

    /**
     * @param token the token to set
     */
    public void setToken(String token) {
        this.token = token;
    }

    /**
     * @param submited the submited to set
     */
    public void setSubmited(AtomicBoolean submited) {
        this.submited = submited;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "AvoidDuplicateSubmissionToken [token=" + token + ", submited=" + submited + "]";
    }
}